/**
 * @(#)ItemService.java, 2018/2/3.
 * <p/>
 * Copyright 2018 Kerr Wang, Inc. All rights reserved.
 * KERRWANG PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package org.wangzx.exercise.service.core;

import org.wangzx.exercise.meta.bean.ItemBean;

import java.util.List;

/**
 * @author hzwangzuxiang(ahscwzx@163.com)
 */
public interface ItemCoreService {
    public List<ItemBean> getAllItems();

    public long insertItem(ItemBean itemBean);

    public ItemBean getItemById(long id);

    public List<ItemBean> getAllItemsBySeller(long sellerId);

    public boolean updateItem(ItemBean itemBean);

    public boolean addSellCount(long id, int num);
}